home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-06-26 | 2.0 KB | 57 lines | [TEXT/GEOL] |
- Item 4104499 4-May-89 00:08
-
- From: CH0095 CH DEV PEMD Group
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Later versions of ourApp
-
-
- Hi Everyone,
-
- I have a question about preparing an application for later versions.
- Specifcally, if a constant is defined in version 1.0, how can it be increased
- in version 2.0 so that 2.0 can still read files created by 1.0?
-
- In ourApp there are two types of structures in the DoRead/DoWrite methods that
- need to be handled for later application versions:
-
- 1) GraphRecord = Record
- DataArray: Array[1..kMaxPoints] of String[kMaxdataLength];
- PredictArray: Array[1..kMaxPoints] of Boolean;
- AreaName: String[kMaxAreaNameLength];
- Abbrev: String[kMaxAbbrevLength];
- PredictInfo: String[kMaxPredictInfoLength];
- End; {These records are written to the files data fork; all identifiers
- beginning with "k" are constants defined in the CONST section of ourApp.p.}
-
- 2) VariableRecord = Record
- VariableName: String[kMaxVariablenameLength];
- MeasurementUnit: String[kMaxMeasurementUnitLength];
-
- MaxYear: String[kMaxDataLength];
- MinYear: String[kMaxDataLength];
-
- OrigMax String[kMaxDataLength];
- OrigMin String[kMaxDataLength];
-
- UseMax String[kMaxDataLength];
- UseMin String[kMaxDataLength];
-
- SigDigits: LONGINT;
- END; {These records are written to the file's resource fork; all
- identifiers beginning with "k" are constants defined in the CONST section of
- ourApp.p.}
-
- How can any of these constants be increased so that the application can read
- files created when the constants were smaller?
-
- Thanks,
- Ernie Rosenberg
-
- P.S. I want to thank all those who reponded to our how-to-write-a-PICT-file
- question. The response was great and will save us a lot of time!
-
-
-
-